package com.cyf.web.network.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(value = "返回类")
public class RespResult {


  /**
     * 成功
     */
    public static final Integer SUCCESS = 200;

    /**
     * 失败
     */
    public static final Integer FAIL = 500;


    /**
     * 超时
     */
    public static final Integer TIMEOUT = 0;
    public static final String SUMESSAGE = "成功";
  public static final String OVERTIME = "超时";

    @ApiModelProperty(value = "200 成功,0超时,500失败")
    private int result;
    @ApiModelProperty(value = "错误信息")
    private String message;
    @ApiModelProperty(value = "数据体")
    private Object data;

  public RespResult() {
  }

  public RespResult(int result, String message) {
    this.result = result;
    this.message = message;
  }

  public RespResult(int result, String message, Object data) {
    this.result = result;
    this.message = message;
    this.data = data;
  }
}
